package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.AppInfoMapper;
import com.qfedu.openplateform.manager.entity.AppInfo;
import com.qfedu.openplateform.manager.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: Mr.Shang
 * @date: 2021/10/27 17:06
 * @version: 1.0
 * @description:
 */
@Service
@Transactional
public class AppInfoServiceImpl implements AppInfoService {

    @Autowired
    private AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> getAllAppInfo() {
        return appInfoMapper.getAllAppInfo();
    }

    @Override
    public void deleteAppInfo(Integer id) {
        appInfoMapper.deleteAppInfo(id);
    }

    @Override
    public void updateAppInfo(AppInfo appInfo) {
        appInfoMapper.updateAppInfo(appInfo);
    }

    @Override
    public void addAppInfo(AppInfo appInfo) {
        appInfoMapper.addAppInfo(appInfo);
    }
}
